package cn.boat.router.models;

import lombok.Data;

@Data
public class TopicAndPartition {
    private String topic;
    private Partition partition;
    private boolean isLeader;

    public TopicAndPartition() {
    }

    public TopicAndPartition(String topic, Partition partition, boolean isLeader) {
        this.topic = topic;
        this.partition = partition;
        this.isLeader = isLeader;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Partition getPartition() {
        return partition;
    }

    public void setPartition(Partition partition) {
        this.partition = partition;
    }

    public boolean isLeader() {
        return isLeader;
    }

    public void setLeader(boolean leader) {
        isLeader = leader;
    }
}
